/**
 * Export model definition object.
 */
module.exports = {
  username: { type: String, unique: true },
  nickname: String,
  password: String,
  gitPassword: String,
  salt: String,
  status: { type: Number, default: 0 },
  role: Number,
  lang: String,
  visitCount: { type: Number, default: 0 },
  lastVisitAt: Date,
  // 用户来源 1：testgrid用户 2：qst 用户
  source: { type: Number, default: 1 },
  // 用户来源平台的用户id
  sourceUserid: String,
};
